package com.ruoyi.yl.controller;

import com.ruoyi.yl.common.Result;
import com.ruoyi.yl.domain.YlStock;
import com.ruoyi.yl.service.StockManageService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: linKe
 * @Date: 2022/2/17 17:24
 * @FileName: TestController
 * @version: 1.0
 * @Description: 描述
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Resource
    private StockManageService stockManageServiceImpl;

    @GetMapping()
    public Result<com.gislife.a4.modules.business.dto.base.BasePageResVO<YlStock>> test() {

        return  new Result<YlStock>().ok(stockManageServiceImpl.getAll());

    }
}
